package cn.credit.loan.service.staging;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.credit.loan.dao.staging.StagingMapper;
import cn.credit.loan.entity.Staging;


@Service
public class StagingServiceImpl implements StagingService {
	
	@Autowired
	private StagingMapper stagingMapper;
	
	@Override
	public List<Staging> Staginglist() {
		List<Staging> staList= stagingMapper.getStaging();
		if(staList!=null){
			return staList;
		}
		return null;
	}

	/**
	 * 新增分期期数
	 */
	@Override
	public Boolean addByNumber(Staging staging) {
		if(staging!=null){
			int stagin= stagingMapper.addByNumber(staging);
			if(stagin>0){
				return true;
			}
		}
		return false;
	}
	
}
